# Root for source tree
ROOT=~/work/lineage

. build/envsetup.sh

cd $ROOT/bionic
repopick -f 185636 185639 185640

cd $ROOT/bootable/recovery
repopick -f 186286

# Hax
cd $ROOT/build/make
repopick -f 186687 187638 187329 187330 187331 187332 187372 187896 187373

cd $ROOT/build/soong
repopick -f 186740

cd $ROOT/frameworks/av
repopick -f 185929 186712 185875 185876 187558 187559 187560 187561

cd $ROOT/frameworks/base
repopick -f 186673
git fetch https://github.com/Oreo-onyx/frameworks_base e24243b6a34719c382cc1bcf50e52c56679102d4 && git cherry-pick FETCH_HEAD

cd $ROOT/hardware/qcom/wlan
repopick -f 186300

cd $ROOT/hardware/qcom/wlan-caf
repopick -f 187865 187866 187867 187868 187869 187870 187871 187872 187873 187874 187875

cd $ROOT/packages/apps/FMRadio
repopick -f 186688

cd $ROOT/system/core
repopick -f 185642 185654 185672 185653 185656 185657 185658 185659 185888 186684 187146 187084 186304

cd $ROOT/system/media
repopick -f 185783 187646

cd $ROOT/system/sepolicy
repopick -f 186243 186244 186245 186246

cd $ROOT/vendor/lineage
repopick -f 185852 185869 185870 185491 185521 186505 187858 187574

cd $ROOT/system/bt
repopick -f 185858

cd $ROOT/hardware/qcom/bt
repopick -f 186349 186350 186351 186988

cd $ROOT/hardware/qcom/bt-caf
repopick -f 187859 187860 187861 187862 187863 187864

cd $ROOT/hardware/qcom/keymaster
repopick -f 186041 186042 186043 186044 186045 186046 186047 186048

cd $ROOT/external/tinycompress
repopick -f 185936 185937 185938 185939

cd $ROOT/hardware/qcom/audio-caf/msm8974
repopick -f 187029 187030

cd $ROOT/packages/inputmethods/LatinIME
repopick -f 187094

cd $ROOT/external/toybox
repopick -f 186302 187155

cd $ROOT/system/vold
repopick -f 187724 187725 187726 187727 187728 187729 187730 187731 187732 187733 187734 187735

cd $ROOT/hardware/libhardware_legacy
git fetch https://review.lineageos.org/LineageOS/android_hardware_libhardware_legacy refs/changes/63/187563/1 && git cherry-pick FETCH_HEAD
git fetch https://review.lineageos.org/LineageOS/android_hardware_libhardware_legacy refs/changes/64/187564/1 && git cherry-pick FETCH_HEAD
git fetch https://review.lineageos.org/LineageOS/android_hardware_libhardware_legacy refs/changes/65/187565/1 && git cherry-pick FETCH_HEAD
git fetch https://review.lineageos.org/LineageOS/android_hardware_libhardware_legacy refs/changes/66/187566/1 && git cherry-pick FETCH_HEAD
git fetch https://review.lineageos.org/LineageOS/android_hardware_libhardware_legacy refs/changes/67/187567/1 && git cherry-pick FETCH_HEAD

cd $ROOT/hardware/interfaces
git fetch https://review.lineageos.org/LineageOS/android_hardware_interfaces refs/changes/68/187568/1 && git cherry-pick FETCH_HEAD
git fetch https://review.lineageos.org/LineageOS/android_hardware_interfaces refs/changes/69/187569/1 && git cherry-pick FETCH_HEAD
git fetch https://review.lineageos.org/LineageOS/android_hardware_interfaces refs/changes/70/187570/1 && git cherry-pick FETCH_HEAD

cd $ROOT/external/mksh
repopick -f 186303

cd $ROOT/packages/apps/Eleven
git fetch https://review.lineageos.org/LineageOS/android_packages_apps_Eleven refs/changes/12/187812/1 && git cherry-pick FETCH_HEAD

cd $ROOT/packages/apps/Recorder
repopick -f 186721 186786 186722

cd $ROOT/external/toybox
repopick -f 186302
